public class PrintNameThread implements Runnable {

	private Thread thread;
	private String prefix;
	private String sufix;

	public PrintNameThread(String name, String prefix, String sufix) {
		setPrefix(prefix);
		setSufix(sufix);
		setThread(new Thread(this, name));
		getThread().start();
	}

	@Override
	public void run() {
		PrintStrings.print(getPrefix(), getSufix());
	}

	public Thread getThread() {
		return thread;
	}

	public void setThread(Thread thread) {
		this.thread = thread;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getSufix() {
		return sufix;
	}

	public void setSufix(String sufix) {
		this.sufix = sufix;
	}

}